

CROSS=

CC=$(CROSS)gcc
CPP=$(CROSS)g++
STRIP=$(CROSS)strip

CLIENT-OUT=yatun

CLIENT-OBJS=main.o ConfigParser.o c_Plug_IO.o IO_Tun.o IO_TCP.o IO_UDP.o SchedQueue.o 

DEFS=
LIBS=
INCLUDES=


CFLAGS+= -Wall -pedantic -g

all: $(CLIENT-OUT) 
	@echo "Finished building ... `date`"


client: $(CLIENT-OUT)

$(CLIENT-OUT): $(CLIENT-OBJS)
	$(CPP) $(CFLAGS) $(CLIENT-OBJS) $(LIBS) -o  $@ 


%.o:	%.cpp
	$(CPP) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<

%.o:	%.c
	$(CPP) $(CFLAGS) $(DEFS) $(INCLUDES) -c $<

clean:
	rm -f $(CLIENT-OUT) 
	rm *.o 

strip: $(CLIENT-OUT)
	$(STRIP) ./$(CLIENT-OUT)
